<?php
if(isset($user) and ($user))
//pr($user);
//exit;
?>
<div class="cat_page">
  <h5><?php echo $user['User']['name']; ?></h5>
  <div class="cat_page_left ">
    <div class="seller_right_pro">
      <div class="seller_pro_img">
      <?php  if(isset($user['User']['img']) and ($user['User']['img'])){echo $html->image('User/'.$user['User']['img']); }?>
      </div>
    </div>
  </div>
  <div class="cat_page_right ">
  <?php
  if(isset($ProductReviews) and ($ProductReviews))
  {
  ?>
  
    <div class="item_list_show">
      <h2>Reviews</h2>
      <div class="def_div f_left">
        <div class="common_border1"></div>
        <?php 
			foreach($ProductReviews as $ProductReview)
			{
				//pr($ProductReview);
				//exit;
		?>
                <div class="cust_review_pannel">
                  <div class="width_15 f_left">
                   <?php echo $html->link($html->image('Product/'.$ProductReview['ProductReview']['Product']['img'], array('width'=>'100', 'height'=>'auto')), array('controller'=>'products', 'action'=>'product', $ProductReview['ProductReview']['Product']['slug']), array('escape'=>false));?>
                   <span class="pad_10"></span>
                    <div class="def_div f_left">
                    <?php echo $html->link($ProductReview['ProductReview']['Product']['name'], array('controller'=>'products', 'action'=>'product', $ProductReview['ProductReview']['Product']['slug']), array('escape'=>false, 'class'=>'blue_link'));?>By <?php echo $ProductReview['ProductReview']['Product']['Brand']['name'];  ?>
                    </div>
                  </div>
                  <div class="width_84 f_right">
                    <h4><?php echo $ProductReview['ProductReview']['title']; ?></h4>
                    <div class="def_div f_left">
                      <div class="rating_<?php echo $ProductReview['ProductReview']['rating']; ?>  f_left"></div>
                    </div>
                    <p><b>Date : </b><?php echo date("Y M D", strtotime($ProductReview['ProductReview']['created'])); ?></p>
                    <p><?php echo $ProductReview['ProductReview']['review']; ?></p>
                  </div>
                </div>
        <?php
			}
		?>
      </div>
    </div>
 <?php
  }
 ?>  
    <?php
		if(isset($user_wish_listes) and ($user_wish_listes))
			{
		?>
           <div class="item_list_show">
              <h2>Wishlist</h2>
	  <?php
			foreach($user_wish_listes as $user_wish_list)
				{
			  ?>
              <h3> <?php echo $user_wish_list['Wishlist']['name']; ?></h3>
              <div class="def_div f_left">
              <?php if(isset($user_wish_list['Wishlist']['Products']) and ($user_wish_list['Wishlist']['Products']))
						  {
							  $x=1;
							  $prs = $user_wish_list['Wishlist']['Products'];

							  foreach( $prs as $product)
								  {
								  ?>
									<div class="item_list">
									  <ul>
										<li>
										 <?php echo $html->link($html->image('Product/'.$product['WishlistProduct']['Product']['img'], array('width'=>'90', 'height'=>'83')), array('controller'=>'products', 'action'=>'product', $product['WishlistProduct']['Product']['slug']), array('escape'=>false));?>
								  </li>
										<li>
										  <p>
											<?php echo $html->link($product['WishlistProduct']['Product']['name'], array('controller'=>'products', 'action'=>'product', $product['WishlistProduct']['Product']['slug']), array('escape'=>false, 'class'=>''));?>
										 </p>
										</li>
										<li>
										  <p><?php echo $product['WishlistProduct']['Product']['Brand']['name'];  ?></p>
										</li>
									  </ul>
									</div>
									<?php
									if(($x%5)==0)
										{
											echo '<div class="common_border1"></div>';
										}
									?>
									
								<?php
								 $x++; }
							  }
			  ?>
              </div>
             <?php
				}
				?>
            </div>
		<?php
			}
		?>
  </div>
</div>
